local key = KEYS[1]
local current = redis.call('GET',key)
if current == false then
    redis.call('SET',key,1)
    return 1
else
    redis.call('INCR',key)
    return tonumber(current)+1
end